package com.tongzhou.util;

import java.io.IOException;
import java.io.InputStream;
import java.util.Properties;

public class Config {
	
	public static String apksh = null;
	public static String output = null;
	public static Integer imageWidth = null;
	public static Integer imageHeight = null;
	
	public static String mail_smtp_host = null;
	public static String server_mail = null;
	public static String server_pass = null;
	public static String subject = null;
	public static String server_mail_addr = null;
	
	public static String domain_name = null;
	public static String upgrade_default_send_time = null;
	public static String upgrade_expire_time = null;
	
	static{
		
		try {
			InputStream in = Config.class.getResourceAsStream("/config.properties");
			Properties p = new Properties();
			p.load(in);
			apksh = String.valueOf(p.get("apksh"));
			output = String.valueOf(p.get("output"));
			imageWidth = Integer.valueOf(String.valueOf(p.get("imageWidth")));
			imageHeight = Integer.valueOf(String.valueOf(p.get("imageHeight")));
			mail_smtp_host = String.valueOf(p.get("mail_smtp_host"));
			server_mail = String.valueOf(p.get("server_mail"));
			server_pass = String.valueOf(p.get("server_pass"));
			server_mail_addr = String.valueOf(p.get("server_mail_addr"));
			subject = String.valueOf(p.get("subject"));
			domain_name = String.valueOf(p.get("domain_name"));
			upgrade_default_send_time = String.valueOf(p.get("upgrade_default_send_time"));
			upgrade_expire_time = String.valueOf(p.get("upgrade_expire_time"));
		} catch (IOException e) {
			e.printStackTrace();
		}
	}

}
